package com.example.logger.Controller;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/logger2")
@Slf4j
public class LoggerController2 {

    @RequestMapping("/log")
    public String print(){
        log.info("使用日志对象打印日志");
        System.out.println("使用输出语句打印日志");
        return "success";
    }


}
